Create and Maintain Relationships using Business Rules
Ability is provide via attached business rules to address the below four requirements:
|
| Creating Relationship via Create Client Business Rules: |
| 1. PRIMARYTYPE – specifies the primary relation between the client being created and an existing client | |||||||||||||||||||||||||||||||||||||||
| 2. SECONDARYTYPE – specifies the secondary relation between the client being created and an existing client3. | |||||||||||||||||||||||||||||||||||||||
| 3. PRIMARYGUID – The attribute PRIMARYGUID in the <Relationship> element is optional. | |||||||||||||||||||||||||||||||||||||||
|
a. Between the PRIMARYGUID and SECONDARYGUID, one attribute should always be provided. The other value will be substituted with the ClientGUID of the client being created for the purposes of the Relationship record. |
|||||||||||||||||||||||||||||||||||||||
| b. If both PRIMARYGUID and SECONDARYGUID are provided or both attributes are not provided, a system error will be displayed with a message saying "Only one of PRIMARYGUID and SECONDARYGUID attributes should be provided" | |||||||||||||||||||||||||||||||||||||||
|
4. SECONDARYGUID - The SECONDARYGUID will be an optional attribute which can be provided when the new client being created should become the Primary Client for the relationship. |
|||||||||||||||||||||||||||||||||||||||
|
a. Basis the values provided under the PRIMARYGUID (identify PrimaryClientType basis this), SECONDARYGUID (identify SecondaryClientType basis this), b. PRIMARYTYPE (this is mapped to the PrimaryRelationshipTypeCode) and SECONDARYTYPE (this is mapped to the SecondaryRelationshipTypeCode) attributes, the ClientRelationshipScreen BR relating at the Primary Company override level should be used to check the validity of the relationship combination. c. If invalid, a system error should be displayed with a message saying "Invalid Relationship combination (PrimaryClientType, SecondaryClientType, PrimaryRelationshipTypeCode, PrimaryRelationshipTypeCode)". |
|||||||||||||||||||||||||||||||||||||||
|
5. RECORDSTATUSCODE - The RECORDSTATUSCODE attribute will allow two possible values - ACTIVE and DRAFT (linked with AsCode table for AsCodeChangeStatus). This will link to the RecordStatusCode of the client relationship timeslice. Only Active and Draft status time slices can be added. |
|||||||||||||||||||||||||||||||||||||||
|
a. This is a optional attribute and the default value, if this attribute is not configured will be ACTIVE. |
|||||||||||||||||||||||||||||||||||||||
| b. The RecordStatusCode cannot be used in the <Fields> section under the relationship element since it is available as an attribute | |||||||||||||||||||||||||||||||||||||||
|
6. BUSINESSSTATUSCODE – Used to capture the business status code in case it is being used |
|||||||||||||||||||||||||||||||||||||||
| EFFECTIVEFROM - Used to capture the EffectiveFrom date of the Relationships | |||||||||||||||||||||||||||||||||||||||
|
When the CreateClients BR is processed with a valid Relationship element, a relationship record will be created with one time slice for the same. |
|||||||||||||||||||||||||||||||||||||||
|
If the time slice is set with RecordStatusCode is set to "DRAFT", the relationship time slice can then be edited/submitted from the OIPA application UI like any other time slice created from UI. |
|||||||||||||||||||||||||||||||||||||||
|
If the time slice is set with RecordStatusCode set to "ACTIVE", the relationship time slice will be created in "PENDING" status and the attached BR will create the associated Screen Update Activity with the following points taken care of: |
|||||||||||||||||||||||||||||||||||||||
|
a. The ClientRelationshipScreen BR at the Primary Company level will need to referenced to identify the Screen Update Activity to be spawned for this particular combination of Primary Relationship type, Secondary Relationship type. |
|||||||||||||||||||||||||||||||||||||||
| b. The Screen Update activity will need to be spawned on the TimeSlice context. | |||||||||||||||||||||||||||||||||||||||
| c. The Screen Update activity will be created with EffectiveDate = EffectiveFromDate of the time slice. | |||||||||||||||||||||||||||||||||||||||
| d. The Screen Update activity will be linked with a "Change Request" entry to ensure the screen update activity and the time slice are linked appropriately. | |||||||||||||||||||||||||||||||||||||||
| e. The Screen Update activity will need to be "AUTO-PROCESSED" unless the Effective From Date is in future of the System Date. | |||||||||||||||||||||||||||||||||||||||
|
f. All the attributes provided will be linked to the fixed Relationship fields and the <Fields> configured will be linked to the dynamic Relationship fields to create the Relationship time slice with the appropriate relationship fields. The EffectiveToDate will be set to 12/31/9999 (maximum date entry).
|